package com.gotloop.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.orm.jdo.support.JdoDaoSupport;
import org.springframework.stereotype.Repository;

import com.gotloop.jdo.Loop;
import com.gotloop.jdo.UserProfile;
import com.gotloop.jdo.Vote;
import com.gotloop.jdo.key.VotePK;

/**
 * Vote Data Access Object Implementation.
 * @author jibhaine
 *
 */
@Repository
public class VoteDAOImpl extends JdoDaoSupport <Vote, VotePK> implements VoteDAO {
	
	/**
	 * Logger for VoteDAOImpl.
	 */
	private static final Logger LOG = LoggerFactory.getLogger(VoteDAOImpl.class);

	@Override
	public List<Vote> howManyVotes(Loop loop) {
		LOG.debug("count votes for loop {}", loop.getTitle());
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Vote> howManyVotes(UserProfile userProfile) {
		LOG.debug("count votes from user {}", userProfile.getName());
		// TODO Auto-generated method stub
		return null;
	}

}
